-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security Hub - get_findings and batch_import_findings #8518
base: master
Are you sure you want to change the base?
Security Hub - get_findings and batch_import_findings #8518
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8518 +/- ##
==========================================
- Coverage 92.63% 92.62% -0.01%
==========================================
Files 1229 1234 +5
Lines 106394 106480 +86
==========================================
+ Hits 98553 98632 +79
- Misses 7841 7848 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Singha22, thank you for getting started on this new service!
The implementation looks mostly OK to me - I just have one request to simplify the pagination-implementation a bit.
op="GetFindings", msg="MaxResults must be a number greater than 0" | ||
) | ||
|
||
paginator = Paginator( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we can just use the @paginate
-decorator on the method here, that should simplify the implementation a bit.
Please see the docs here: https://docs.getmoto.org/en/latest/docs/contributing/development_tips/utilities.html#paginator
Resolves #8493
get_findings
contains code for only these 2 parameters out of the 4 parameters